
package ro.qi.framework.sys.security.entities;

import ro.qi.framework.sys.entities.Entity;


public class SecurityApplicationRoleCollection extends Entity {

	public SecurityApplicationRoleCollection(int applicationId) {
		super();
		setApplicationId(applicationId);
		select();
	}

	public void setApplicationId(int value) {
		setValue("applicationId", value);
	}

	public int getCollectionSize() {
		return getCollectionSize("applicationRoles");
	}

	public int getRoleId(int index) {
		return getCollectionIntValue("applicationRoles", "id", index);
	}

	public SecurityApplicationRole getApplicationRole(int index) {
		return new SecurityApplicationRole(getRoleId(index));
	}

}
